package ferramentas;

import java.io.File;

/**
 *
 * @author kako
 */
public class CFG {

    public static final TipoConfiguracao tipoConfiguracao = TipoConfiguracao.OFICIAL;
    public static final TipoDataSource tipoDataSource = TipoDataSource.POOL;
    /**
     * ***********************************************************************************
     */
    //String novo servidor
//    public static final String DB_LOCAL = "jdbc:mysql://127.0.0.1:13301/bridge";
//    public static final String DB_USUARIO = "BridgeUser";
//    public static final String DB_SENHA = "Ci@r.UFG";
//    
      //String servidor antigo
    public static final String DB_LOCAL = "jdbc:mysql://mercurio2.ciar.ufg.br:3306/bridge";
    public static final String DB_USUARIO = "bridge";
    public static final String DB_SENHA = "ci@r.ufg";
    
    //TESTES
//    public static final String DB_LOCAL = "jdbc:mysql://localhost:3306/bridge";
//    public static final String DB_USUARIO = "root";
//    public static final String DB_SENHA = "237904";
    
    public static final String DIRETORIO_ARQUIVOS = "bridge_files";
    public static final String DIRETORIO_CERTIFICADOS = "certificados";
    public static String DIRETORIO_DOCUMENTOS = "documentos";
    public static String WS_TOKEN = "f3431636fb7fcf649cd58973228b6d18";
    public static String WS_MOODLE_CIAR = "http://moodle2-desenv.ciar.ufg.br/webservice/rest/server.php";
    public static String DIRETORIO_DOCUMENTOS_IPTSP2 = "iptsp2";
    public static String IPTSP2_COMPROVANTE_GRADUACAO = "graduacao";
    public static String IPTSP2_COMPROVANTE = "comprovante";
    public static String IPTSP2_CARTA_COMPROMISSO = "carta_compromisso";
    public static String IPTSP2_TERMO_COMPROMISSO = "termo_compromisso";
    public static String IPTSP2_COMPROVANTE_RG = "comprovante_rg";
    public static String IPTSP2_COMPROVANTE_CPF = "comprovante_cpf";
    public static String IPTSP2_TERMO_DESLOCAMENTO = "termo_deslocamento";
    public static String DIRETORIO_DOCUMENTOS_ENFERMAGEM = "enfermagem";
    public static final String ENFERMAGEM_CERTIFICADO_CURSO = "certificadocurso";
    public static final String ENFERMAGEM_INDICACAO_TRABALHO = "indicacaotrabalho";
    public static final int KB = 1024;
    public static final int MB = 1024 * KB;
    public static final int MAX_MEMORY_SIZE = 20 * MB;
    public static final File TMP_DIRECTORY = new File(System.getProperty("java.io.tmpdir"));
    public static final String ENCODING = "UTF-8";
    public static final long MAX_UPLOAD_SIZE = 10;
    public static final long MAX_UPLOAD_SIZE_MB = 10 * MB;
    public static final long MAX_UPLOAD_FORMULARIOS_MB = MAX_UPLOAD_SIZE;
    public static final long MAX_UPLOAD_FORMULARIOS = MAX_UPLOAD_FORMULARIOS_MB * MB;
    public static final String[] EMAIL_ADMINISTRADORES = new String[]{"luizhenrique321@gmail.com", "muriloborgessilva@gmail.com"};
    /**
     * EDSC *
     */
    public static final String INICIO_INRICOES_EDSC = "01/04/2013 00:00:00";
    public static final String FIM_INRICOES_EDSC = "07/05/2013 00:00:00";
    public static final String DIRETORIO_DOCUMENTOS_EDSC = "edsc";
    public static final String EDSC_RG = "copia_rg";
    public static final String EDSC_CPF = "copia_cpf";
    public static final String EDSC_VISTO = "copia_visto";
    public static final String EDSC_DIPLOMA = "copia_diploma";
    public static final String EDSC_HISTORICO = "copia_historico";
    public static final String EDSC_COMPROVANTE = "copia_comprovante";
    public static final String EDSC_DECLARACAO = "declaracao";
    public static final String EDSC_CONTRACHEQUE = "contracheque";
    public static final String EDSC_PROJETO = "projeto";
    public static final String EDSC_MOTIVACAO = "motivacao";
    /**
     * ENFERMAGEM *
     */
    public static final String INICIO_INRICOES_ENFERMAGEM = "01/11/2013 00:00:00";//-->01/11/2013
    public static final String FIM_INRICOES_ENFERMAGEM = "18/01/2014 00:00:00";//-->17/01/2014
    public static final String BD_AMST = "enf_2013_3_AMST";
    /**
     * IPTSP - ASS 2013 *
     */
    public static final String INICIO_INRICOES_IPTSP_2013_1 = "17/06/2013 00:00:00";//-->13/05/2013
    public static final String FIM_INRICOES_IPTSP_2013_1 = "26/06/2013 08:00:00";//-->27/05/2013
    public static final String DIRETORIO_DOCUMENTOS_ASS_2013 = "ass_2013";
    public static final String ASS_RG_CPF = "rg_cpf";
    public static final String ASS_DIPLOMA = "diploma";
    public static final String ASS_COMPROVANTE_SUS = "comprovante_sus";
    public static final String ASS_CARTA_LIBERACAO = "carta_liberacao";
    public static final String ASS_TERMO_COMPROMISSO = "termo_compromisso";
    public static final String localDocumentos = tipoConfiguracao == TipoConfiguracao.OFICIAL ? "/var/lib/tomcat6/webapps" : "C:\\teste";
    public static final String urlSIEAD = tipoConfiguracao == TipoConfiguracao.OFICIAL ? "http://siead.ciar.ufg.br/" : "http://localhost:8084/Call/";
    /*
     * Evento CIAR
     */
    public static final String INICIO_INRICOES_EVENTO_CIAR = "10/09/2013 00:00:00";
    public static final String FIM_INRICOES_EVENTO_CIAR = "23/09/2013 00:00:00";//-->22/09/2013
    // ----- 03/10/2013 -----
    public static final int DATA_EVENTO_CIAR_DIA = 3;
    public static final int DATA_EVENTO_CIAR_MES = 10;
    public static final int DATA_EVENTO_CIAR_ANO = 2013;
    /**
     * BANCO DE DADOS - POOL CONNECTION *
     */
    public static final int BD_INITIAL_POOL_SIZE = 1;
    public static final int BD_MIN_POOL_SIZE = 1;
    //public static final int BD_MAX_POOL_SIZE = 100;
    public static final int BD_MAX_POOL_SIZE = 200;
    public static final int MAX_IDLE_TIME = 10;
    public static final int MIN_IDLE_TIME = 0;
//    public static final int MAX_ACTIVE = 100;
    public static final int MAX_ACTIVE = 200;
    public static final int MAX_WAIT = 10000;
    public static final int ACQUIRE_INCREMENT = 1;
    public static final int CHECKOUT_TIMEOUT = 10000;

    /**
     * ***********************************************************************************
     */
    public enum TipoConfiguracao {

        OFICIAL, TESTE
    }

    public enum TipoDataSource {

        BASIC, POOL
    }
}